package com.winit.app.model;

import com.winit.common.base.bean.BaseModel;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

@Data
@Entity
@DynamicUpdate
@DynamicInsert
@Table(name="ucloud_app")
@NoArgsConstructor
public class UCloudApp extends BaseModel {


    @Id
    @GenericGenerator(name="idGenerator", strategy="uuid")
    @GeneratedValue(generator="idGenerator")
    private String id;

    @Column(name="name")
    private String name;

    @Column(name="type")
    private String type;

    @Column(name="url")
    private String url;

    @Column(name="order")
    private String order;

    @Column(name="ports")
    private String ports;

    @Column(name="db_type")
    private String dbType;

    @Column(name="available")
    private Integer available;

    @Column(name="mem_level")
    private String memLevel;



}
